package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.bizimpl.upmp.domain.UpmpUserApexInfo;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * @author System
 */
public interface IUpmpUserApexInfoService extends IService<UpmpUserApexInfo> {
    UpmpUserApexInfo findByProperty(String instId,String userType,String propertyKey,String propertyValue);

    /**
     * 查询某个用户的附加信息
     * @param instId
     * @param userId
     * @return
     */
    List<UpmpUserApexInfo> findPropertyByUserInfo(String instId, String userId)throws RedpException;

    /**
     * 查询某个用户的附加信息
     * @param instId
     * @param userId
     * @return
     */
    Map<String, String> findPropertyMapByUserInfo(String instId, String userId)throws RedpException;
}
